package dto;

public class MemberDTO {
	private String id;
	private int registerNumber1;
	private int registerNumber2;
	private String password;
	private String name;
	private String address;
	private String phone;
	private String photo;
	private int mileage;
	private String seq;
	private String credit;
	private int credit_score;
	private String is_validate;
	private String register_date;
	private String update_date;
	private String delete_date;
	private String email;
	private ZipcodeDTO zipcodeDTO;
	public MemberDTO() {
		super();
	}
	@Override
		protected Object clone() throws CloneNotSupportedException {
			// TODO Auto-generated method stub
			return super.clone();
		}
	public MemberDTO(String id, int registerNumber1, int registerNumber2,
			String password, String name, String address, String phone,
			String photo, int mileage, String seq, String credit,
			int credit_score, String is_validate, String register_date,
			String update_date, String delete_date, String email,
			ZipcodeDTO zipcodeDTO) {
		super();
		this.id = id;
		this.registerNumber1 = registerNumber1;
		this.registerNumber2 = registerNumber2;
		this.password = password;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.photo = photo;
		this.mileage = mileage;
		this.seq = seq;
		this.credit = credit;
		this.credit_score = credit_score;
		this.is_validate = is_validate;
		this.register_date = register_date;
		this.update_date = update_date;
		this.delete_date = delete_date;
		this.email = email;
		this.zipcodeDTO = zipcodeDTO;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getRegisterNumber1() {
		return registerNumber1;
	}
	public void setRegisterNumber1(int registerNumber1) {
		this.registerNumber1 = registerNumber1;
	}
	public int getRegisterNumber2() {
		return registerNumber2;
	}
	public void setRegisterNumber2(int registerNumber2) {
		this.registerNumber2 = registerNumber2;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPhoto() {
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	public int getMileage() {
		return mileage;
	}
	public void setMileage(int mileage) {
		this.mileage = mileage;
	}
	public String getSeq() {
		return seq;
	}
	public void setSeq(String seq) {
		this.seq = seq;
	}
	public String getCredit() {
		return credit;
	}
	public void setCredit(String credit) {
		this.credit = credit;
	}
	public int getCredit_score() {
		return credit_score;
	}
	public void setCredit_score(int credit_score) {
		this.credit_score = credit_score;
	}
	public String getIs_validate() {
		return is_validate;
	}
	public void setIs_validate(String is_validate) {
		this.is_validate = is_validate;
	}
	public String getRegister_date() {
		return register_date;
	}
	public void setRegister_date(String register_date) {
		this.register_date = register_date;
	}
	public String getUpdate_date() {
		return update_date;
	}
	public void setUpdate_date(String update_date) {
		this.update_date = update_date;
	}
	public String getDelete_date() {
		return delete_date;
	}
	public void setDelete_date(String delete_date) {
		this.delete_date = delete_date;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public ZipcodeDTO getZipcodeDTO() {
		return zipcodeDTO;
	}
	public void setZipcodeDTO(ZipcodeDTO zipcodeDTO) {
		this.zipcodeDTO = zipcodeDTO;
	}
	@Override
	public String toString() {
		return "MemberDTO [id=" + id + ", registerNumber1=" + registerNumber1
				+ ", registerNumber2=" + registerNumber2 + ", password="
				+ password + ", name=" + name + ", address=" + address
				+ ", phone=" + phone + ", photo=" + photo + ", mileage="
				+ mileage + ", seq=" + seq + ", credit=" + credit
				+ ", credit_score=" + credit_score + ", is_validate="
				+ is_validate + ", register_date=" + register_date
				+ ", update_date=" + update_date + ", delete_date="
				+ delete_date + ", email=" + email + ", zipcodeDTO="
				+ zipcodeDTO + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((address == null) ? 0 : address.hashCode());
		result = prime * result + ((credit == null) ? 0 : credit.hashCode());
		result = prime * result + credit_score;
		result = prime * result
				+ ((delete_date == null) ? 0 : delete_date.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((is_validate == null) ? 0 : is_validate.hashCode());
		result = prime * result + mileage;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result
				+ ((password == null) ? 0 : password.hashCode());
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
		result = prime * result + ((photo == null) ? 0 : photo.hashCode());
		result = prime * result + registerNumber1;
		result = prime * result + registerNumber2;
		result = prime * result
				+ ((register_date == null) ? 0 : register_date.hashCode());
		result = prime * result + ((seq == null) ? 0 : seq.hashCode());
		result = prime * result
				+ ((update_date == null) ? 0 : update_date.hashCode());
		result = prime * result
				+ ((zipcodeDTO == null) ? 0 : zipcodeDTO.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MemberDTO other = (MemberDTO) obj;
		if (address == null) {
			if (other.address != null)
				return false;
		} else if (!address.equals(other.address))
			return false;
		if (credit == null) {
			if (other.credit != null)
				return false;
		} else if (!credit.equals(other.credit))
			return false;
		if (credit_score != other.credit_score)
			return false;
		if (delete_date == null) {
			if (other.delete_date != null)
				return false;
		} else if (!delete_date.equals(other.delete_date))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (is_validate == null) {
			if (other.is_validate != null)
				return false;
		} else if (!is_validate.equals(other.is_validate))
			return false;
		if (mileage != other.mileage)
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (phone == null) {
			if (other.phone != null)
				return false;
		} else if (!phone.equals(other.phone))
			return false;
		if (photo == null) {
			if (other.photo != null)
				return false;
		} else if (!photo.equals(other.photo))
			return false;
		if (registerNumber1 != other.registerNumber1)
			return false;
		if (registerNumber2 != other.registerNumber2)
			return false;
		if (register_date == null) {
			if (other.register_date != null)
				return false;
		} else if (!register_date.equals(other.register_date))
			return false;
		if (seq == null) {
			if (other.seq != null)
				return false;
		} else if (!seq.equals(other.seq))
			return false;
		if (update_date == null) {
			if (other.update_date != null)
				return false;
		} else if (!update_date.equals(other.update_date))
			return false;
		if (zipcodeDTO == null) {
			if (other.zipcodeDTO != null)
				return false;
		} else if (!zipcodeDTO.equals(other.zipcodeDTO))
			return false;
		return true;
	}
	
}
